<?php

namespace Database\Seeders;

use DB;
use Illuminate\Database\Seeder;

class AdminTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run() 
    {
        // base tables
        \Encore\Admin\Auth\Database\Menu::truncate();
        \Encore\Admin\Auth\Database\Menu::insert(
            [
                [
                    "parent_id" => 0,
                    "order" => 1,
                    "title" => "控制面板",
                    "icon" => "fa-bar-chart",
                    "uri" => "/dashboard",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 0,
                    "order" => 2,
                    "title" => "系统管理",
                    "icon" => "fa-tasks",
                    "uri" => NULL,
                    "permission" => NULL
                ],
                [
                    "parent_id" => 2,
                    "order" => 3,
                    "title" => "账号管理",
                    "icon" => "fa-users",
                    "uri" => "auth/users",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 2,
                    "order" => 4,
                    "title" => "角色管理",
                    "icon" => "fa-user",
                    "uri" => "auth/roles",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 2,
                    "order" => 5,
                    "title" => "权限管理",
                    "icon" => "fa-ban",
                    "uri" => "auth/permissions",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 2,
                    "order" => 6,
                    "title" => "菜单管理",
                    "icon" => "fa-bars",
                    "uri" => "auth/menu",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 2,
                    "order" => 7,
                    "title" => "日志管理",
                    "icon" => "fa-history",
                    "uri" => "auth/logs",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 0,
                    "order" => 14,
                    "title" => "会员管理",
                    "icon" => "fa-users",
                    "uri" => NULL,
                    "permission" => NULL
                ],
                [
                    "parent_id" => 0,
                    "order" => 21,
                    "title" => "新闻管理",
                    "icon" => "fa-product-hunt",
                    "uri" => NULL,
                    "permission" => NULL
                ],
                [
                    "parent_id" => 9,
                    "order" => 23,
                    "title" => "新闻列表",
                    "icon" => "fa-bars",
                    "uri" => "/news",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 0,
                    "order" => 53,
                    "title" => "海报管理",
                    "icon" => "fa-file-image-o",
                    "uri" => "/posters",
                    "permission" => NULL
                ],
                [
                    "parent_id" => 8,
                    "order" => 15,
                    "title" => "会员总管",
                    "icon" => "fa-file-picture-o",
                    "uri" => "/super-users",
                    "permission" => NULL
                ],

                 [
                    "parent_id" => 9,
                    "order" => 24,
                    "title" => "洞察列表",
                    "icon" => "fa-bars",
                    "uri" => "/deep-news",
                    "permission" => NULL
                ],
               
               
            ]
        );

        \Encore\Admin\Auth\Database\Permission::truncate();
        \Encore\Admin\Auth\Database\Permission::insert(
            [
                [
                    "name" => "All permission",
                    "slug" => "*",
                    "http_method" => "",
                    "http_path" => "*"
                ],
                [
                    "name" => "Dashboard",
                    "slug" => "dashboard",
                    "http_method" => "GET",
                    "http_path" => "/"
                ],
                [
                    "name" => "Login",
                    "slug" => "auth.login",
                    "http_method" => "",
                    "http_path" => "/auth/login\r\n/auth/logout"
                ],
                [
                    "name" => "User setting",
                    "slug" => "auth.setting",
                    "http_method" => "GET,PUT",
                    "http_path" => "/auth/setting"
                ],
                [
                    "name" => "Auth management",
                    "slug" => "auth.management",
                    "http_method" => "",
                    "http_path" => "/auth/roles\r\n/auth/permissions\r\n/auth/menu\r\n/auth/logs"
                ],
                [
                    "name" => "Api editors upload",
                    "slug" => "api.editors.upload",
                    "http_method" => "POST",
                    "http_path" => "/api/editors/upload"
                ],
                [
                    "name" => "Configs",
                    "slug" => "configs",
                    "http_method" => "",
                    "http_path" => "/configs*"
                ],
                [
                    "name" => "Config withdraws",
                    "slug" => "config.withdraws",
                    "http_method" => "",
                    "http_path" => "/config-withdraws*"
                ],
                [
                    "name" => "Config apps",
                    "slug" => "config.apps",
                    "http_method" => "",
                    "http_path" => "/config-apps*"
                ],
                [
                    "name" => "Config sales",
                    "slug" => "config.sales",
                    "http_method" => "",
                    "http_path" => "/config-sales*"
                ],
                [
                    "name" => "Bonuses",
                    "slug" => "bonuses",
                    "http_method" => "",
                    "http_path" => "/bonuses*"
                ],
                [
                    "name" => "Balances",
                    "slug" => "balances",
                    "http_method" => "",
                    "http_path" => "/balances*"
                ],
                [
                    "name" => "Users",
                    "slug" => "users",
                    "http_method" => "",
                    "http_path" => "/users*"
                ],
                [
                    "name" => "Api users",
                    "slug" => "api.users",
                    "http_method" => "GET",
                    "http_path" => "/api/users"
                ],
                [
                    "name" => "Vip purchases",
                    "slug" => "vip.purchases",
                    "http_method" => "",
                    "http_path" => "/vip-purchases*"
                ],
                [
                    "name" => "Upgrade logs",
                    "slug" => "upgrade.logs",
                    "http_method" => "",
                    "http_path" => "/upgrade-logs*"
                ],
                [
                    "name" => "Posters",
                    "slug" => "posters",
                    "http_method" => "",
                    "http_path" => "/posters*"
                ],
                [
                    "name" => "Invite posters",
                    "slug" => "invite.posters",
                    "http_method" => "",
                    "http_path" => "/invite-posters*"
                ],
                [
                    "name" => "Withdraws",
                    "slug" => "withdraws",
                    "http_method" => "",
                    "http_path" => "/withdraws*"
                ],
                [
                    "name" => "Slides",
                    "slug" => "slides",
                    "http_method" => "",
                    "http_path" => "/slides*"
                ],
                [
                    "name" => "Categories",
                    "slug" => "categories",
                    "http_method" => "",
                    "http_path" => "/categories*"
                ],
                [
                    "name" => "Attribute groups",
                    "slug" => "attribute.groups",
                    "http_method" => "",
                    "http_path" => "/attribute-groups*"
                ],
                [
                    "name" => "Attribute keys",
                    "slug" => "attribute.keys",
                    "http_method" => "",
                    "http_path" => "/attribute-keys*"
                ],
                [
                    "name" => "Api products",
                    "slug" => "api.products",
                    "http_method" => "GET",
                    "http_path" => "/api/products"
                ],
                [
                    "name" => "Products",
                    "slug" => "products",
                    "http_method" => "",
                    "http_path" => "/products*"
                ],
                [
                    "name" => "Product skus",
                    "slug" => "product.skus",
                    "http_method" => "",
                    "http_path" => "/product-skus*"
                ],
                [
                    "name" => "Product slides",
                    "slug" => "product.slides",
                    "http_method" => "",
                    "http_path" => "/product-slides*"
                ],
                [
                    "name" => "Product images",
                    "slug" => "product.images",
                    "http_method" => "",
                    "http_path" => "/product-images*"
                ],
                [
                    "name" => "Orders",
                    "slug" => "orders",
                    "http_method" => "",
                    "http_path" => "/orders*"
                ],
                [
                    "name" => "Order refunds",
                    "slug" => "order.refunds",
                    "http_method" => "",
                    "http_path" => "/order-refunds*"
                ],
                [
                    "name" => "Comments",
                    "slug" => "comments",
                    "http_method" => "",
                    "http_path" => "/comments*"
                ],
                [
                    "name" => "Attribute values",
                    "slug" => "attribute.values",
                    "http_method" => "",
                    "http_path" => "/attribute-values*"
                ],
                [
                    "name" => "Addresses",
                    "slug" => "addresses",
                    "http_method" => "",
                    "http_path" => "/addresses*"
                ],
                [
                    "name" => "Vendors",
                    "slug" => "vendors",
                    "http_method" => "",
                    "http_path" => "/vendors*"
                ],
                [
                    "name" => "Vendor orders",
                    "slug" => "vendor.orders",
                    "http_method" => "",
                    "http_path" => "/vendor-orders*"
                ],
                [
                    "name" => "Vendor admins",
                    "slug" => "vendor.admins",
                    "http_method" => "",
                    "http_path" => "/vendor-admins*"
                ],
                [
                    "name" => "Hot products",
                    "slug" => "hot.products",
                    "http_method" => "",
                    "http_path" => "/hot-products*"
                ],
                [
                    "name" => "Brands",
                    "slug" => "brands",
                    "http_method" => "",
                    "http_path" => "/brands*"
                ],
                [
                    "name" => "Broadcasts",
                    "slug" => "broadcasts",
                    "http_method" => "",
                    "http_path" => "/broadcasts*"
                ],
                [
                    "name" => "Super users",
                    "slug" => "super.users",
                    "http_method" => "",
                    "http_path" => "/super-users*"
                ],
                [
                    "name" => "Brokerages",
                    "slug" => "brokerages",
                    "http_method" => "",
                    "http_path" => "/brokerages*"
                ],
                [
                    "name" => "Api user increase",
                    "slug" => "api.user.increase",
                    "http_method" => "GET",
                    "http_path" => "/api/user/increase"
                ],
                [
                    "name" => "Api user consist",
                    "slug" => "api.user.consist",
                    "http_method" => "GET",
                    "http_path" => "/api/user/consist"
                ],
                [
                    "name" => "Api everyday profit",
                    "slug" => "api.everyday.profit",
                    "http_method" => "GET",
                    "http_path" => "/api/everyday/profit"
                ],
                [
                    "name" => "Api provinces",
                    "slug" => "api.provinces",
                    "http_method" => "GET",
                    "http_path" => "/api/provinces"
                ],
                [
                    "name" => "Api areas",
                    "slug" => "api.areas",
                    "http_method" => "GET",
                    "http_path" => "/api/areas"
                ],
                [
                    "name" => "Admin dashboard",
                    "slug" => "admin.dashboard",
                    "http_method" => "",
                    "http_path" => "/dashboard*"
                ],
                [
                    "name" => "Grades",
                    "slug" => "grades",
                    "http_method" => "",
                    "http_path" => "/grades*"
                ],
                [
                    "name" => "Bonus recores",
                    "slug" => "bonus.records",
                    "http_method" => "",
                    "http_path" => "/bonus-records*"
                ],
                [
                    "name" => "Config goods",
                    "slug" => "config.goods",
                    "http_method" => "",
                    "http_path" => "/config-goods*"
                ],
                 [
                    "name" => "Seckill products",
                    "slug" => "seckill.products",
                    "http_method" => "",
                    "http_path" => "/seckill-records*"
                ],
                 [
                    "name" => "Rewards",
                    "slug" => "rewards",
                    "http_method" => "",
                    "http_path" => "/rewards*"
                ],
                 [
                    "name" => "Activities",
                    "slug" => "activities",
                    "http_method" => "",
                    "http_path" => "/activities*"
                ],
                 [
                    "name" => "Activity records",
                    "slug" => "activity.records",
                    "http_method" => "",
                    "http_path" => "/activity-records*"
                ],
                
               
            ]
        );

        \Encore\Admin\Auth\Database\Role::truncate();
        \Encore\Admin\Auth\Database\Role::insert(
            [
                [
                    "name" => "Administrator",
                    "slug" => "administrator"
                ],
                [
                    "name" => "Manager",
                    "slug" => "manager"
                ],
                [
                    "name" => "Supervisor",
                    "slug" => "supervisor"
                ],
                [
                    "name" => "Maintainer",
                    "slug" => "maintainer"
                ],
                [
                    "name" => "Parttimer",
                    "slug" => "parttimer"
                ],
                [
                    "name" => "Vendor",
                    "slug" => "vendor"
                ],
                [
                    "name" => "Service",
                    "slug" => "service"
                ]
            ]
        );

        // pivot tables
        DB::table('admin_role_menu')->truncate();
        DB::table('admin_role_menu')->insert(
            [
                [
                    "role_id" => 1,
                    "menu_id" => 2
                ]
            ]
        );

        DB::table('admin_role_permissions')->truncate();
        DB::table('admin_role_permissions')->insert(
            [
                [
                    "role_id" => 1,
                    "permission_id" => 1
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 6
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 7
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 8
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 9
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 10
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 11
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 12
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 13
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 14
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 15
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 16
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 17
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 18
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 19
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 20
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 21
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 22
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 23
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 24
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 25
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 26
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 27
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 28
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 29
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 30
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 31
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 32
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 33
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 34
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 35
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 36
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 37
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 38
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 39
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 40
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 41
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 42
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 43
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 44
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 45
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 46
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 47
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 48
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 49
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 50
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 51
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 52
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 53
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 54
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 55
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 56
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 57
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 58
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 59
                ],
                [
                    "role_id" => 2,
                    "permission_id" => 60
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 6
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 7
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 8
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 9
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 10
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 11
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 12
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 13
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 14
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 15
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 16
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 17
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 18
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 19
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 20
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 21
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 22
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 23
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 24
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 25
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 26
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 27
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 28
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 29
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 30
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 31
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 32
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 33
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 34
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 35
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 36
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 37
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 38
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 39
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 40
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 41
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 42
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 43
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 44
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 45
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 46
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 47
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 48
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 49
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 50
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 51
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 52
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 53
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 54
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 55
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 56
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 57
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 58
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 59
                ],
                [
                    "role_id" => 3,
                    "permission_id" => 60
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 6
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 7
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 8
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 9
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 10
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 11
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 12
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 13
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 14
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 15
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 16
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 17
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 18
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 19
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 20
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 21
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 22
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 23
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 24
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 25
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 26
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 27
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 28
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 29
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 30
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 31
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 32
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 33
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 34
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 35
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 36
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 37
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 38
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 39
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 40
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 41
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 42
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 43
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 44
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 45
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 46
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 47
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 48
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 49
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 50
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 51
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 52
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 53
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 54
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 55
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 56
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 57
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 58
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 59
                ],
                [
                    "role_id" => 4,
                    "permission_id" => 60
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 6
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 23
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 24
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 25
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 26
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 27
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 28
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 29
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 30
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 31
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 32
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 33
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 37
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 40
                ],
                [
                    "role_id" => 5,
                    "permission_id" => 41
                ],
                [
                    "role_id" => 6,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 6,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 6,
                    "permission_id" => 38
                ],
                [
                    "role_id" => 6,
                    "permission_id" => 39
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 2
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 3
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 6
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 12
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 13
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 14
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 15
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 16
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 17
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 18
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 19
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 20
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 21
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 23
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 24
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 25
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 26
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 27
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 28
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 29
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 30
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 31
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 32
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 33
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 35
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 36
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 37
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 38
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 39
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 40
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 41
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 42
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 43
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 44
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 45
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 46
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 47
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 51
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 52
                ],
                [
                    "role_id" => 7,
                    "permission_id" => 54
                ],

                
            ]
        );

        // finish
    }
}
